package com.axe.processdatasync;

public class AuthInfo {

    private User user;

    private boolean isAuth;


    public static AuthInfo getInstance() {
        return SingletonHolder.singleton;
    }

    private static class SingletonHolder {
        private static final AuthInfo singleton = new AuthInfo();
    }


    public User getUser() {
        return user;
    }

    public AuthInfo setUser(User user) {
        this.user = user;
        return this;
    }

    public boolean isAuth() {
        return isAuth;
    }

    public AuthInfo setAuth(boolean auth) {
        isAuth = auth;
        return this;
    }
}
